/**
 * 正确响应接口
 */
export interface Response {
    code: number;
    message: string;
    data: any;
}

/**
 * 错误响应接口
 */
export interface ErrorResponse {
    code: number;
    message: string;
    error_code: number;
    error: string;
}

/**
 * Token数据接口
 */
export interface TokenData {
    access_token: string;
    token_type: string;
}

/**
 * 分页数据接口
 */
export interface PageResponseData {
    total: number;
    page: number;
    size: number;
    records: any[];
}

/**
 * 基础响应接口
 */
export interface BaseResponse<T = any> {
    code: number;
    message: string;
    data: T;
    total?: number;
    page_size?: number;
    page?: number;
    has_more?: boolean;
}